package com.shuoyue.ycgk.ui.papergroups.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.baseadapter.AppBaseQuickAdapter;
import com.shuoyue.ycgk.entity.Paper;

import java.util.List;

public class PaperAdapter extends AppBaseQuickAdapter<Paper> {
    public PaperAdapter(@Nullable List<Paper> data) {
        super(R.layout.item_paper, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Paper item) {
        helper.addOnClickListener(R.id.lay_all);
        helper.setText(R.id.title, item.getName());
        helper.setText(R.id.done, "已练："
                + item.getDoQuestion() + "/" + item.getTotalQuestion());


    }
}
